﻿using System;
using Fabrication.Tests.TestClasses;
using NUnit.Framework;

namespace Fabrication.Tests
{
    [TestFixture]
    public class nullables
    {
        [Test]
        public void should_set_nullable_values_to_default_for_type()
        {
            var builtItem = new FabricationScope().Generate<ClassWithNullables>();

            Assert.That(builtItem.NullableBoolean, Is.False);
            Assert.That(builtItem.NullableInteger, Is.EqualTo(0));
            Assert.That(builtItem.NullableDateTime, Is.EqualTo(DateTime.MinValue));
        }
    }
}
